#include "Window.h"

namespace vkengine
{
	Window::Window(int w, int h, std::string name) :m_Width{ w }, m_Height{ h }, m_WindowName{ name },window{nullptr}
	{

	}

	Window::~Window()
	{
		
	}

	void Window::InitWindow()
	{
		glfwInit();
		glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API);
		glfwWindowHint(GLFW_RESIZABLE, GLFW_TRUE);

		window = glfwCreateWindow(m_Width, m_Height, m_WindowName.c_str(), nullptr, nullptr);
		
	}

	void Window::Cleanup()
	{
		glfwDestroyWindow(window);
		glfwTerminate();
	}


}
